<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // break 结束当前循环
        // continue 结束本次循环执行下次循环
        let nuber = parseInt(prompt('请输入1-4之间的数.....'));
        switch (nuber) {
            case 1:
                alert('胡歌')
                break;
            case 2:
                alert('赵玉真')
                break;
            case 3:
                alert('韩立')
                break;
            case 4:
                alert('李白')
                break;
            default:
                alert('输入出错，再见')
                break;
        }
    </script>
</body>

</html>